/* 基础公共样式 */
* {
  margin: 0;
  padding: 0;
}
body {
  font: 14px/1.5 "Helvetica Neue", Helvetica, Arial, "Microsoft Yahei",
    "Hiragino Sans GB", "Heiti SC", "WenQuanYi Micro Hei", sans-serif;
  color: #050505;
  background-color: #f3f5f7;
}
a {
  text-decoration: none;
  color: #050505;
}
li {
  list-style: none;
}
.clearfix:before,
.clearfix:after {
  content: "";
  display: table;
}
.clearfix:after {
  clear: both;
}
.clearfix {
  *zoom: 1;
}
.sprites {
  background-image: url(../images/sprites.png);
  background-size: 400px 400px;
  background-repeat: no-repeat;
}
input {
  outline: none;
  padding: 0;
  border: none;
}
.topnav {
  background-color: #333;
}

/* 版心宽度 */
.w {
  width: 1240px;
  margin: 0 auto;
}
.nav {
  height: 52px;
  /* background-color: pink; */
  line-height: 53px;
  margin: 0 auto;
  text-align: right;
}

.nav li {
  display: inline-block;
  font-size: 14px;
}
.nav li a {
  display: inline-block;
  /* 让行高等于字体大小,但是文字如何居中呢 */
  line-height: 1;
  padding: 0 15px;
  border-right: 2px solid #666;
  color: #dcdcdc;
}
.nav li:last-child a {
  border-right: none;
  margin-right: 0;
}
.nav li .phone {
  display: inline-block;
  width: 20px;
  height: 16px;
  position: relative;
  top: 3px;
  background-position: -160px -70px;
}
.nav li a:hover {
  color: #5eb69c;
}
body {
  background-color: #fff;
}
img {
  vertical-align: middle;
}
/* 头部 */
.header {
  height: 129px;
  padding: 32px 21px 16px;
}
.header .logo {
  width: 143px;
  height: 129px;
  margin-right: 70px;
  margin-left: 21px;
  float: left;
  background-color: #0f0;
}
.navs {
  float: left;
}

.header .navs li {
  position: relative;
  float: left;
  margin-top: 75px;
  font-size: 16px;
  line-height: 16px;
  margin-right: 40px;
}
/* 用伪元素做链接下划线 */
.header .navs li::after {
  position: absolute;
  content: "";
  display: none;
  width: 30px;
  height: 2px;
  background-color: #5eb69c;
  bottom: -7px;
}
.header .navs li:hover a {
  color: #5eb69c;
}
.header .navs li:hover::after {
  display: block;
}
/* 购物车 */
.header .search_cart {
  display: block;
  width: 23px;
  height: 23px;
  position: relative;
  margin: 68px 32px 53px 12px;
  float: right;
  background-position: -120px -70px;
}
.header .search_cart i {
  position: absolute;
  top: -5px;
  left: 16px;
  line-height: 1;
  font-size: 13px;
  padding: 1px 6px;
  font-size: 400;
  background-color: #ea745e;
  border-radius: 15px;
  color: #fff;
}
.header .search_wrapper {
  width: 162px;
  height: 30px;
  margin: 66px 10px 33px 10px;
  /* 设置内右边距给精灵图放大镜让位置 */
  padding-left: 30px;
  border-bottom: 1px solid #e7e7e7;
  position: relative;
  float: right;
}
/* 用伪元素插入放大镜 */
.header .search_wrapper::before {
  content: "";
  display: block;
  width: 18px;
  height: 18px;
  position: absolute;
  left: 5px;
  top: 10px;
  background-image: url(../images/sprites.png);
  background-size: 400px 400px;
  background-position: -80px -70px;
}
.header .search_wrapper input {
  height: 100%;
  font-size: 15px;
  color: #999;
}
.header .search_wrapper input::-webkit-input-placeholder {
  color: #ccc;
}
.container {
  height: 500px;
  width: 100%;
  background-color: #f2f2f2;
}
.container .fenlei {
  width: 250px;
  height: 500px;
  background-color: rgba(0, 0, 0, 0.8);
  position: relative;
  z-index: 9;
  float: left;
}

.container .fenlei li {
  width: 250px;
  height: 48px;
  /* padding: 0 20px 0 40px; */
  transition: all 1s;
  cursor: pointer;
}
.fenlei li:hover  {
  background-color: #5eb69c;
}
.fenlei li a {
  /* display: inline-block; */
  padding: 0 20px 0 40px;
  color: #fff;
  font-size: 18px;
  height: 100%;
  line-height: 48px;
}
 .fenlei .sprites {
  display: block;
  width: 12px;
  height: 12px;
  margin-top: 23px;
  background-position: -75px -110px;
  float: right;
}
.fenlei::after {
  content:'';
   width: 990px;
   height: 500px;
   background-color: rgba(255,255,255,0.5);
   position: absolute;
   left: 250px;
   top: 0;
   display: none;
}
.fenlei:hover::after {
  display: block;
}
.tuzi {
  position: relative;
  width: 990px;
  float: left;
}
.tuzi a {
  width: 100%;
  display: block;
  height: 500px;
}
.tuzi a img {
  width: 100%;
  height: 100%;
}
.tuzi .prev,
.tuzi .next {
  position: absolute;
  text-decoration: none;
  top: 50%;
  margin-top: -22px;
  width: 45px;
  height: 45px;
  line-height: 45px;
  background-color: rgba(0, 0, 0, 0.3);
  text-align: center;
  color: #fff;
}
.tuzi .prev {
  left: 17px;
  border-radius: 50%;
}
.tuzi .next {
  right: 17px;
  border-radius: 50%;
}
/* 隐藏 next prev */
.tuzi .prev,
.tuzi .next {
  display: none;
}
/* 鼠标经过图片时显示翻页 */
.tuzi:hover .prev {
  display: block;
}
.tuzi:hover .next {
  display: block;
}
/* 鼠标经过翻页时颜色变深 */
.tuzi .prev:hover {
  background-color: rgba(0, 0, 0, 0.8);
}
.tuzi .next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}
/* 设置焦点图 */
.tuzi .indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  width: 120px;
  height: 12px;
  margin-left: -60px;
}
.indicator li {
  float: left;
  width: 12px;
  height: 12px;
  margin-right: 15px;
  list-style: none;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
}
.indicator .selected {
  background-color: #fff;
}
.indicator li:nth-last-child(1) {
  margin-right: 0;
}

.text {
  height: 29px;
  padding: 40px 0;
}
.text h3 {
  height: 29px;
  line-height: 29px;
  margin-left: 6px;
  font-size: 29px;
  font-weight: 400;
  color: #333;
  float: left;
}
.text small {
  margin-left: 22px;
  font-size: 16px;
  color: #999;
}
.text a {
  line-height: 1;
  margin-top: 14px;
  font-size: 16px;
  color: #999;
  float: right;
}
.text .all i {
  display: inline-block;
  width: 16px;
  height: 16px;
  position: relative;
  top: 1px;
  background-image: url(../images/sprites.png);
  background-position: 100px 0;
}
.wu {
  height: 407px;
}
.wu a {
  display: inline-block;
  position: relative;
  width: 305px;
  height: 407px;
  margin-right: 2px;
  text-align: center;
  background-color: #f0f9f4;
  transition: all 0.5s;
  top: 0;
}
.wu a:hover {
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
  top: -10px;
  /* position: absolute; */
}
.wu a img {
  width: 100%;
}
.wu a:nth-of-type(4) {
  margin-right: 0;
}
.wu .name {
  display: block;
  font-size: 20px;
  margin-top: 20px;
  margin-bottom: 22px;
}
.wu .price {
  display: block;
  font-size: 23px;
  color: #9a2e1f;
}
.wu .title {
  display: block;
  font-size: 20px;
  margin-top: 20px;
  margin-bottom: 19px;
}
.wu .alt {
  font-size: 16px;
  color: #999;
}

/* 热门品牌 */
.remen {
  background-color: #f5f5f5;
  margin-top: 80px;
  /* height: 508px; */
}
.remen a {
  display: inline-block;
  width: 240px;
  height: 306px;
  margin-bottom: 69px;
  margin-right: 6px;
}
.remen a:nth-last-child(1) {
  margin-right: 0;
}
.remen a img {
  width: 100%;
}
/* 生鲜 */
.shengxian {
  height: 720px;
  margin-top: 80px;
}
.wenzi {
  height: 29px;
  padding: 36px 0;
  text-align: center;
}
.wenzi h3 {
  font-size: 29px;
  height: 29px;
  line-height: 29px;
  float: left;
}
.wenzi a {
  font-size: 16px;
  margin-right: 18px;
}
.wenzi a:hover {
  background-color: #5eb69c;
}
.wenzi .guo {
  color: #fff;
  background-color: #5eb69c;
  margin-left: 600px;
}
 .all {
  line-height: 1;

  font-size: 16px;
  color: #999;
  float: right;
}
.all:hover {
  background-color: transparent;
}
/* 商品列表 */
.shi {
  position: relative;
  float: left;
  margin-right: 10px;
  width: 237px;
  height: 608px;
}
.shi a {
  float: left;
  position: relative;
  width: 237px;
  height: 608px;
}
.shi img {
  width: 100%;
}
.zhe {
  position: absolute;
  left: 0;
  top: 347px;
  width: 185px;
  height: 66px;
  line-height: 66px;
  text-align: center;
  color: #fff;
  font-size: 17px;
  background-color: rgba(0, 0, 0, 0.8);
}
.zhe span:first-child {
  display: inline-block;
  width: 76px;
  background-color: #000;
}

.picture {
  position: relative;
  width: 240px;
  height: 295px;
  float: left;
  overflow: hidden;
  margin-right: 9px;
  top: 0;
  transition: all 0.5s;
}
.picture .tu {
  width: 241px;
  height: 186px;
}
.picture img {
  width: 100%;
  height: 100%;
}
.xinxi {
  width: 241px;
  height: 114px;
}
.xinxi p {
  font-size: 18px;
}
.xinxi .price {
  margin-bottom: 14px;
  color: #9a2e1f;
}
/* 弹框 */
.tan {
  text-align: center;
  width: 241px;
  height: 86px;
  background-color: #5eb69c;
  position: absolute;
  bottom: -86px;

  transition: all 0.5s;
}
.tan .zhao {
  display: block;
  text-align: center;
  width: 125px;
  height: 25px;
  border-bottom: 2px solid #000;
  border-color: #fff;
  margin: 18px auto 8px;
}
/* 鼠标经过picture时 弹框出现 */
.picture:hover .tan {
  bottom: 0;
}
.shengxian .picture:nth-child(4n) {
  margin-right: 0;
}
/* .shengxian .picture:nth-child(-n + 4) {
  margin-bottom: 1px;
} */
/* 大家都在说 */
.box {
  height: 700px;
}
.box-header {
  height: 115px;
  padding: 40px 0;
  text-align: center;
}
.box h3 {
  height: 35px;
  margin-left: 6px;
  font-size: 32px;
  font-weight: 400;
  color: #333;
  float: left;
}
.box-header a {
  float: right;.
  line-height: 1;
}
.box li {
  width: 400px;
  margin-left: 11px;
  padding-bottom: 24px;
  transition: all .5s;
  float: left;
  position: relative;
  top: 0;
}
.box li:hover {
  box-shadow: 0 3px 8 px rgba(0, 0, 0, 0.2);
  top: -10px;
}
.box li:first-child {
  margin-left: 0;
}
.box li img {
  width: 100%;
}
.box .meta {
  height: 90px;
  padding: 20px 0 0;
  margin: 0 16px;
  font-size: 22px;
  position: relative;
  border-bottom: 1px solid #eee;
}
.meta .title small {
  display: block;
  font-size: 16px;
  color: #999;
}
.box .meta .price {
  font-size: 18px;
  color: #9a2e1f;
  position: absolute;
  top: 30px;
  right: 0;
}
.meta .price small {
  font-size: 13px;
}
.box .message {
  height: 90px;
  padding: 0 16px;
  margin-top: 10px;
  font-size: 17px;
  color: #666;
}
/* 公共底部 */
.footer {
  border-top: 1px solid #e4e4e4;
}
.footer .contact {
  padding: 60px 0 40px 0px;
}
.footer .contact dl {
  height: 190px;
  text-align: center;
  padding: 0 60px;
  border-right: 1px solid #f2f2f2;
  color: #999;
  float: left;
}
.footer .container dl:first-child {
  padding-left: 0;
}
.footer .contact dl:last-child {
border-right: none;
padding-right: 0;
}
.footer .contact dt {
  line-height: 1;
  font-size: 18px;
}
.footer .contact dd {
  margin: 36px 12px 0 0;
  float: left;
}
.footer .contact dd:last-child {
  margin-right: 0;
}
.footer .contact .qrcode {
  width: 92px;
  height: 92px;
  padding: 7px;
  border: 1px solid #ededed;
}
 .qrcode img {
  width: 100%;
}

.footer .contact .download{
  padding: 10px;
}

.footer .contact .download span {
  display: block;
}
.download a {
  display: block;
  color: #fff;
  font-size: 14px;
  width: 106px;
  height: 36px;
  line-height: 36px;
  background-color: #5eb69c;
}
.hotline {
  padding-top: 20px;
  font-size: 22px;
  color: #666;
}
.contact .hotline small {
  display: block;
  font-size: 15px;
  color: #999;
}
.chat::before, .feedback::before, .weixin::before, .weibo::before {
  content: '';
  display: block;
  width: 40px;
  height: 30px;
  margin: 0 auto 8px;
  background-image: url(../images/sprites.png);
  background-size: 400px 400px;
}
.chat, .feedback, .weixin, .weibo {
  width: 92px;
  height: 92px;
  padding-top: 20px;
  border: 1px solid #ededed;
}
.chat::before {
  background-position: -245px -70px;
}
.chat:hover::before {
  background-position: -200px -70px;
}
.feedback::before {
  background-position: -345px -70px;
}
.feedback:hover::before {
  background-position: -295px -70px;
}
.weixin::before {
  background-position: -247px -15px;
}
.weixin:hover::before {
  background-position: -202px -15px;
}
.weibo::before {
  background-position: -347px -15px;
}
.weibo:hover::before {
  background-position: -297px -15px;
}